/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.Observer.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.Observer.WeatherCustomer1;
import za.ac.cput.DesignPatterns.behavioral.Observer.WeatherCustomer2;
import za.ac.cput.DesignPatterns.behavioral.Observer.WeatherStation;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class ObserverConf {
    
    @Bean 
    public WeatherStation weatherStation(){
    return new WeatherStation(33);
    }
    @Bean 
    public WeatherCustomer1 weatherCustomer1(){
    return new WeatherCustomer1();
    } 
    @Bean 
    public WeatherCustomer2 weatherCustomer2(){
    return new WeatherCustomer2();
    } 
}
